<template>
  <div class="page-wrapper">
    <a-flex class="top-wrapper" vertical align="center">
      <span :style="{ fontSize: '12px', marginBottom: '30px' }">
        合伙人专属先锋伙伴计划，推广好友越多则现金补贴越多
      </span>
      <a-flex justify="space-between" align="center" class="top-row">
        <a-flex vertical justify="space-between" align="center" class="top-card">
          <a-flex align="flex-end">
            <span class="number"> 10.000 </span>
            <span class="unit">元</span>
          </a-flex>
          <a-flex align="center">
            <span class="label">今日奖励总额</span>
            <QuestionCircleOutlined class="icon-explain" />
          </a-flex>
        </a-flex>
        <a-divider type="vertical" :style="{ height: '40px', backgroundColor: '#E5E5E5' }" />
        <a-flex vertical justify="space-between" align="center" class="top-card">
          <a-flex align="flex-end">
            <span class="number"> 0.130 </span>
            <span class="unit">元/人</span>
          </a-flex>
          <a-flex align="center">
            <span class="label">今日每人补贴</span>
            <QuestionCircleOutlined class="icon-explain" />
          </a-flex>
        </a-flex>
      </a-flex>
    </a-flex>
    <a-flex class="main-wrapper main-popularize" vertical align="center">
      <a-flex justify="space-between" align="center" class="main-row">
        <a-flex vertical justify="space-between" align="center" class="main-card">
          <a-flex align="flex-end">
            <span class="number"> 0 </span>
            <span class="unit">人</span>
          </a-flex>
          <a-flex align="center">
            <span class="label">今日有效好友</span>
            <QuestionCircleOutlined class="icon-explain" />
          </a-flex>
        </a-flex>
        <a-divider type="vertical" :style="{ height: '30px', backgroundColor: '#D0D0D0' }" />
        <a-flex vertical justify="space-between" align="center" class="main-card">
          <a-flex align="flex-end">
            <span class="number"> 0.00 </span>
            <span class="unit">元</span>
          </a-flex>
          <a-flex align="center">
            <span class="label">今日领取补贴</span>
          </a-flex>
        </a-flex>
        <a-divider type="vertical" :style="{ height: '30px', backgroundColor: '#D0D0D0' }" />
        <a-flex vertical justify="space-between" align="center" class="main-card">
          <a-flex align="flex-end">
            <span class="number"> 0.00 </span>
            <span class="unit">元</span>
          </a-flex>
          <a-flex align="center">
            <span class="label">累计领取补贴</span>
          </a-flex>
        </a-flex>
      </a-flex>
      <span style="margin-bottom: 36px">成为平台合伙人，每日领取推广现金补贴</span>
      <div class="popularize-count-bar">
        <div>距升级至普通合伙人还差好友数（<span style="color: #fd436a">10/100</span>）</div>
        <div class="popularize-progress">
          <div class="popularize-progressbar" :style="{ width: (10 / 100) * 100 + '%' }"></div>
        </div>
      </div>
    </a-flex>
    <a-flex class="main-wrapper main-invite" vertical>
      <a-flex class="today-row round-row">
        <a-flex class="title" justify="center" align="center">今日</a-flex>
        <a-flex class="row-card" vertical justify="center" align="center">
          <span class="number">0</span>
          <span class="label">新增好友</span>
        </a-flex>
        <a-flex class="row-card" vertical justify="center" align="center">
          <span class="number">0</span>
          <span class="label">活跃好友</span>
        </a-flex>
      </a-flex>
      <a-flex class="yesterday-row round-row">
        <a-flex class="title" justify="center" align="center">昨日</a-flex>
        <a-flex class="row-card" vertical justify="center" align="center">
          <span class="number">0</span>
          <span class="label">新增好友</span>
        </a-flex>
        <a-flex class="row-card" vertical justify="center" align="center">
          <span class="number">0</span>
          <span class="label">活跃好友</span>
        </a-flex>
      </a-flex>
      <a-flex justify="space-between" align="center">
        <span>累计好友数：<span style="color: #333333">10</span></span>
        <span>实名好友数：<span style="color: #333333">8</span></span>
      </a-flex>
      <a-flex class="primary-btn" justify="center" align="center">邀请好友</a-flex>
    </a-flex>
    <a-flex class="main-wrapper main-partner" vertical align="center">
      <span class="title">合伙人权益</span>
      <span style="margin-bottom: 32px">加入洽谈合伙人计划，享受多项专属权益</span>
      <a-row class="main-grid" style="width: 100%" :gutter="[0, 16]">
        <a-col :span="8">
          <a-flex vertical align="center">
            <img class="icon" src="/@/assets/images/h5/icon-pioneer-subsidy.png" alt="" />
            <span class="label">先锋补贴</span>
          </a-flex>
        </a-col>
        <a-col :span="8">
          <a-flex vertical align="center">
            <img class="icon" src="/@/assets/images/h5/icon-quarterly-bonus.png" alt="" />
            <span class="label">季度奖金</span>
          </a-flex>
        </a-col>
        <a-col :span="8">
          <a-flex vertical align="center">
            <img class="icon" src="/@/assets/images/h5/icon-team-support.png" alt="" />
            <span class="label">团队扶持</span>
          </a-flex>
        </a-col>
        <a-col :span="8">
          <a-flex vertical align="center">
            <img class="icon" src="/@/assets/images/h5/icon-exclusive-identity.png" alt="" />
            <span class="label">专属身份</span>
          </a-flex>
        </a-col>
        <a-col :span="8">
          <a-flex vertical align="center">
            <img
              class="icon"
              src="/@/assets/images/h5/icon-exclusive-customer-service.png"
              alt=""
            />
            <span class="label">专属客服</span>
          </a-flex>
        </a-col>
      </a-row>
    </a-flex>
    <div style="height: 70px"></div>
  </div>
</template>

<script setup>
import { QuestionCircleOutlined } from '@ant-design/icons-vue'
</script>

<style scoped lang="less">
.page-wrapper {
  height: 100%;
  background-color: #f4f4f4;
  overflow-y: auto;
}
.page-wrapper::-webkit-scrollbar {
  display: none;
}
.top-wrapper {
  height: 162px;
  background-color: #fd436a;
  color: #ffffff;
  padding-top: 6px;
  .top-row {
    width: 100%;
    height: 50px;
  }
  .top-card {
    height: 100%;
    width: 100%;
    .number {
      font-size: 30px;
      color: #fffc9c;
      line-height: 30px;
      font-weight: bolder;
    }
    .unit {
      font-size: 12px;
      color: #fffc9c;
      line-height: 22px;
      margin-left: 6px;
    }
    .label {
      font-size: 10px;
      line-height: 14px;
    }
    .icon-explain {
      font-size: 12px;
      margin-left: 5px;
    }
  }
}
.main-wrapper {
  margin: 0 12px;
  background-color: #ffffff;
  border-radius: 10px;
  font-size: 12px;
  line-height: 17px;
  color: #8d8d8d;
  .title {
    color: #000000;
    font-size: 15px;
    line-height: 21px;
  }
  .main-row {
    width: 100%;
    height: 45px;
    margin-bottom: 10px;
  }
  .main-card {
    height: 100%;
    width: 100%;
    .number {
      font-size: 24px;
      color: #fd436a;
      line-height: 27px;
      font-weight: bolder;
    }
    .unit {
      font-size: 20px;
      color: #fd436a;
      line-height: 27px;
      font-weight: bolder;
      margin-left: 3px;
    }
    .label {
      font-size: 10px;
      line-height: 14px;
      color: #333333;
    }
    .icon-explain {
      font-size: 12px;
      margin-left: 5px;
      color: #333333;
    }
  }
  .round-row {
    width: 100%;
    height: 60px;
    border-radius: 30px;
    .title {
      width: 60px;
      height: 60px;
      border-radius: 30px;
      flex-shrink: 0;
      font-size: 12px;
    }
    .row-card {
      width: 100%;
      .number {
        font-size: 18px;
        line-height: 18px;
      }
      .label {
        font-size: 10px;
        line-height: 14px;
      }
    }
  }
  .primary-btn {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    color: #ffffff;
    background-color: #fd436a;
  }
  .main-grid {
    .icon {
      width: 44px;
      height: 44px;
      margin-bottom: 6px;
    }
    .label {
      font-size: 12px;
      color: #333333;
    }
  }
}
.main-wrapper + .main-wrapper {
  margin-top: 16px;
}
.main-popularize {
  margin-top: -30px;
  padding: 30px 10px 26px;
  .popularize-count-bar {
    position: relative;
    .popularize-progress {
      position: absolute;
      left: 0;
      top: 23px;
      width: 100%;
      height: 6px;
      background-color: #e8eaf0;
      border-radius: 3px;
      .popularize-progressbar {
        background-color: #fd436a;
        height: 100%;
        border-radius: 3px;
      }
    }
  }
}
.main-invite {
  padding: 16px 28px;
  .today-row {
    background-color: #ffead9;
    color: #9e6a42;
    margin-bottom: 16px;
    .title {
      background-color: #ffe0c8;
    }
  }
  .yesterday-row {
    background-color: #ffddd9;
    color: #ca6d61;
    margin-bottom: 12px;
    .title {
      background-color: #ffc6bf;
    }
  }
  .primary-btn {
    margin-top: 24px;
  }
}
.main-partner {
  padding: 16px 0px;
  .title {
    margin-bottom: 12px;
  }
}
</style>
